package org.entryadvisor;

import org.springframework.stereotype.Component;

/**
 * Created by chinalin on 2017/3/18.
 */
@Component
public class GreetingImpl implements Greeting {
    public void sayHello(String name) {
        System.out.println("Hello:" + name);

//        throw new RuntimeException("Error") ;  //故意抛出一个异常，看看异常信息能否被拦截到
    }
    public void goodMorning(String name){
        System.out.println("Good Morning " + name);
    }
    public void goodNight(String name){
        System.out.println("Good Night " + name);
    }
}
